package io.kubesphere.devops.core;

import com.google.common.eventbus.EventBus;

public class MergingEventCenter {
    private static final EventBus eventBus = new EventBus();

    private MergingEventCenter() {
        throw new IllegalStateException("Utility class");
    }

    public static EventBus getInstance() {
        return eventBus;
    }

    public static void register(Object obj) {
        eventBus.register(obj);
    }

    public static void unregister(Object obj) {
        eventBus.unregister(obj);
    }

    public static void post(Object obj) {
        eventBus.post(obj);
    }

}
